package net.sxjr.protal.igcadre;

import net.sxjr.common.Response;
import net.sxjr.mbg.entity.IgCadrePromoteRecruit;
import net.sxjr.protal.igcadre.params.IgcadreInspectionParams;
import net.sxjr.protal.igcadre.params.igCadrePromoteRecruitParms;
import net.sxjr.protal.igcadre.service.CadrePromoteRecruitService;
import net.sxjr.protal.mapconverter.Converter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author ：cuixc
 * @date ：Created in 2020/12/10 19:33
 * @description：干部控制器
 * @modified By：
 */
@RestController
@RequestMapping("/cadrepromotececruit")
public class IgCadrePromoteRecruitController {
    @Autowired
    private CadrePromoteRecruitService cadrePromoteRecruitService;
    //干部提拔任命
    @PostMapping("/up")
    public Response up(@RequestBody igCadrePromoteRecruitParms parms){

        return cadrePromoteRecruitService.up(parms);
    }

    @GetMapping("/list")
    public Response list(){

        return cadrePromoteRecruitService.list();
    }

    //干部走动
    @PostMapping("/cadreInspectionUp")
    public Response cadreInspectionUp(@RequestBody IgcadreInspectionParams parms){

        return cadrePromoteRecruitService.cadreInspectionUp(parms);
    }
    //干部走动列表
    @GetMapping("/cadreInspectionList")
    public Response cadreInspectionList(){

        return cadrePromoteRecruitService.cadreInspectionList();
    }
}
